<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/11/21,0021
  Time: 19:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>登录</title>
</head>
<body>
<div>
    <form method="post" action="/AdminLoginController">
        <table border="1px black" style="text-align: center">
            <tr>
                <td colspan="2"><h3>登录</h3></td>
            </tr>
            <tr>
                <td>用户名:</td>
                <td><input type="text" name="username" placeholder="请输入用户名"></td>
            </tr>
            <tr>
                <td>密码:</td>
                <td><input type="password" name="password" placeholder="请输入密码"></td>
            </tr>
            <tr>
                <td colspan="2"><input type="submit" value="登录">&nbsp;&nbsp;&nbsp;&nbsp;<input type="button" value="注册" onclick="register()"></td>
            </tr>
        </table>
    </form>
</div>
</body>
</html>
<script>
    function register() {
        window.location.href="http://localhost:8080/admin/register.jsp";
    }
</script>
